<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登入</title>
    <style>
        body{
            background: #1c94c4;
        }
        h3{
            width: 180px;
            height: 38px;
            margin: 100px auto;
            text-align: center;
            line-height: 38px;
            background: blueviolet;
            border-radius: 5px;
        }
        .mid{
            width: 180px;
            height: 38px;
            margin: 10px auto;
            text-align: center;
            line-height: 38px;
            background: grey;
            border-radius: 5px;
        }
        .mid-down{
            width: 180px;
            height: 38px;
            margin: 10px auto;
            text-align: center;
            line-height: 38px;
            background: grey;
            border-radius: 5px;
        }
        .bottom{
            margin: 10px auto;
            text-align: center;
            line-height: 38px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div class="all">
        <div class="top1">
            <h3>欢迎使用</h3>
        </div>
        <form  action="/shuiyin/user/login" enctype="multipart/form-data" method="post">
        <div class="mid">

            <input type="text"    name="username" class="#"     placeholder="用户名"   />
        </div>
        <div class="mid-down">
            <input type="password" name="password" class="#"     placeholder="密码"    />
        </div>
        <div class="bottom">
            <button class="btn btn-success btn-block" type="submit" id="btnSubmit">登录</button>
            <button type="button" id="rSubmit">注册</button>
        </div>

        </form>
    </div>
</body>
<script th:src="@{/resource/jquery.min.js}"></script>

<script th:inline="javascript">
    //获取应用路径
    var contextPath = [[${#request.getContextPath()}]];
</script>
    <script type="text/javascript">


        $("#rSubmit").click(function () {
            $(location).attr('href', '/shuiyin/user/register');
        });


    </script>
</html>